home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Drawing / ScreenLoop.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  552 b   |  31 lines  |  [TEXT/CWIE]

  1. // ScreenLoop.h
  2.  
  3. #ifndef ScreenLoop_h
  4. #define ScreenLoop_h
  5.  
  6. #ifndef GraphicsDeviceLoop_h
  7. #include "GraphicsDeviceLoop.h"
  8. #endif
  9.  
  10. class ScreenLoop: private GraphicsDeviceLoop
  11.   {
  12.     private:
  13.         GraphicsDeviceLoop device;
  14.     
  15.         void Advance();
  16.         
  17.     public:
  18.         ScreenLoop();
  19.  
  20.         bool Finished() const        { return device.Finished(); }
  21.         bool Unfinished() const        { return device.Unfinished(); }
  22.         
  23.         void operator++();
  24.         void operator++(int)            { operator++(); }
  25.  
  26.         GraphicsDeviceObject operator*() const        { return *device; }
  27.         // Sorry, no operator->().
  28.   };
  29.  
  30. #endif
  31.